
#include <BScript>
#include <BNode>
#include "ClassNode.h"

ClassNode::ClassNode() : BClass("Node : public Object", true)
{
	insertMethod("Node()", &ClassNode::create);
	insertMethod("Node(BNode&)", &ClassNode::create_node);

	insertMethod("setPosition(const Vector& position)", &ClassNode::setPosition);
	insertMethod("Vector position() const", &ClassNode::position);

	insertMethod("Node& = (Node&)", &ClassNode::assign_node);
}

void ClassNode::create(int argc, BValue* argv)
{

}
void ClassNode::create_node(int argc, BValue* argv)
{

}

void ClassNode::setPosition(int argc, BValue* argv)
{
	BNode* node = argv[0];
	const BVector& position = argv[1];
	node->setPosition(position);
}
void ClassNode::position(int argc, BValue* argv)
{
	const BNode* node = argv[0];
	argv[0] = node->position();
}

void ClassNode::assign_node(int argc, BValue* argv)
{

}

